/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.service.call;

import net.dgg.dggcloud.core.minidao.hibernate.dao.IGenericBaseCommonDao;
import net.dgg.dggcloud.service.common.base.service.BaseService;
import net.dgg.dggcloud.service.entity.user.User;
import net.dgg.dggcloud.service.jrcrm.dao.call.CallMonitorRecordDao;
import net.dgg.dggcloud.service.jrcrm.dao.customer.CallRecordDao;
import net.dgg.dggcloud.service.jrcrm.dao.customer.ContactDao;
import net.dgg.dggcloud.service.jrcrm.dao.customer.SoundCommentDao;
import net.dgg.dggcloud.service.jrcrm.dao.customer.SoundPushRecordDao;
import net.dgg.dggcloud.service.jrcrm.entity.call.CallMonitorRecord;
import net.dgg.dggcloud.service.jrcrm.entity.customer.CallRecord;
import net.dgg.dggcloud.service.jrcrm.entity.customer.Contact;
import net.dgg.dggcloud.service.jrcrm.entity.customer.SoundComment;
import net.dgg.dggcloud.service.jrcrm.entity.customer.SoundPushRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *  监听记录
 * @ClassName: CallRecordService
 * @Author: 郭伟
 * @Date: 2017年11月03 14:34:05
 * @Version V1.0
 */

@Service
public class CallMonitorRecordService extends BaseService {

    @Autowired
    private CallMonitorRecordDao callMonitorRecordDao;


    @Resource(name = "miniDaoHiberCommonDao")
    protected IGenericBaseCommonDao repository;


    public void saveRemark(CallMonitorRecord callMonitorRecord){
         callMonitorRecordDao.saveByHiber(callMonitorRecord);
     }


    public List<Map>  listCallMonitorRecordMap(Map map){
             return callMonitorRecordDao.listCallMonitorRecordMap(map);
    }

    public Integer  countCallMonitorRecordMap(Map map){
        return callMonitorRecordDao.countCallMonitorRecordMap(map);
    }

}
